package accessory;

public class GameProperty {

	String name;
	Object value;
	GamePropertyType type;
	
	
	public GameProperty(String name, String value) {
		this.name = name;
		this.value = value;
		this.type = GamePropertyType.DEFAULT;
	}
	
	public GameProperty(String name, String value, GamePropertyType type) {
		this.name = name;
		this.value = value;
		this.type = type;
	}
	
	public GameProperty(String name, Object value, GamePropertyType type) {
		this.name = name;
		this.value = value;
		this.type = type;
	}

	public GameProperty() {
		this.name = "";
		this.value = "";
		this.type = GamePropertyType.DEFAULT;
	}
	
	public GameProperty(GameProperty copyValue) {
		this.name = copyValue.getName();
		this.value = copyValue.getName();
		this.type = copyValue.getType();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Object getValue() {
		return value;
	}
	
	public String getValueString(){
		return value.toString();
	}

	public void setValue(Object value) {
		this.value = value;
	}
	
	public void setValue(String value){
		this.value = value;
	}

	public GamePropertyType getType() {
		return type;
	}

	public void setType(GamePropertyType type) {
		this.type = type;
	}
	
	
}
